package paperockscissors;

public enum RPSEnum {
 PAPER("Paper"), ROCK("Rock"), SCISSORS("Scissors");
 
	 private final String name;
	 
	 private RPSEnum(final String name){
		 this.name = name;
	 }
	 public String getName() {
		 return this.name;
	 }
	public static RPSEnum random () {
		switch (2 + (int)(Math.random() * ((2 - 0) + 1))) {
			case 0:
				return RPSEnum.PAPER;
			case 1:
				return RPSEnum.ROCK;
			case 2:
				return RPSEnum.SCISSORS;	
		}
		return RPSEnum.ROCK;
	}
}
